import wx

class Menu(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self,parent,id,title,size=(640,480))
        
        menubar = wx.MenuBar()
        file = wx.Menu()
        file.Append(-1,'Quit','Quit application')
        file.Append(-2,'Test','Testing')
        
        view = wx.Menu()
        view.Append(-1,'A','AA')
        view.Append(-2,'B','BB')
        
        menubar.Append(file,'&File')
        menubar.Append(view,'&View')
        self.SetMenuBar(menubar)
        
        
        self.Center()
        self.Show(True)

app = wx.App()
Menu(None,-1,'testing menu')
app.MainLoop()        

